<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="~{common/header :: commonHead}"></head>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="ibox-tools">
                        <a href="javascript: window.location.href='/user_level/list';" title="刷新"><i
                                class="glyphicon glyphicon-repeat"></i></a>
                    </div>
                    <div id="editable_wrapper" class="dataTables_wrapper form-inline" role="grid">
                        <table class="table table-striped table-bordered table-hover  dataTable" id="editable"
                               aria-describedby="editable_info">
                            <thead>
                            <tr role="row">
                                <th aria-label="等级名称" style="width: 10%;">等级名称</th>
                                <th aria-label="等级介绍" style="width: 15%;">等级介绍</th>
                                <!--<th aria-label="周期范围" style="width: 10%;">周期范围</th>-->
                                <th aria-label="会员关系级别" style="width: 10%;">会员关系级别</th>
                                <th aria-label="需要达到的积分数" style="width: 10%;">需要达到的积分数</th>
                                <th aria-label="倍率" style="width: 10%;">倍率</th>
                                <th aria-label="操作" style="width: 10%;">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="gradeA odd" th:if="${#lists.isEmpty(pageObj)}">
                                <td colspan="9" style="text-align: center">
                                    没有数据o&gt;^&lt;o
                                </td>
                            </tr>
                            <tr class="gradeA odd" th:each="item : ${pageObj}">
                                <td th:text="${item.levelName}"></td>
                                <td th:text="${item.levelInfo}"></td>
                                <!--<td th:text="${item.validityTime}"></td>-->
                                <td th:text="${item.levelStratum}"></td>
                                <td th:text="${item.integralTotal}"></td>
                                <td th:text="${item.multiply}"></td>
                                <td class="center ">
                                    <shiro:hasPermission name="edit_user_level">
                                        <a type="button" th:href="${'/user_level/edit?userLevelId=' + item.userLevelId}" title="编辑"><i class="glyphicon glyphicon-edit"></i></a>
                                    </shiro:hasPermission>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script th:inline="javascript">
</script>
</html>